package com.vlin.service.tuya;

import java.util.List;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface TuyaService {

	@RequestMapping("app/users")
	public String getUsers(@RequestParam(name="limit") int limit, @RequestParam(name="size") int size) ;
	
	@RequestMapping("app/user/devices")
	public String getUserDevice(@RequestParam(name="uid") String uid); 
	
	@RequestMapping("app/devices/token")
	public String getUserToken(@RequestParam(name="deviceId") String deviceId);
	
	@RequestMapping("app/token/devices")
	public String getTokenDevices(@RequestParam(name="token") String token);
	
	@RequestMapping("app/device/functions")
	public String getDeviceFunction(@RequestParam(name="did") String did);
	
	@RequestMapping("app/device/commands")
	public String sendCommonds(@RequestParam(name="did") String did, @RequestParam(name="body") String body);
		
	@RequestMapping("app/device/delete")
	public String deleteDevice(@RequestParam(name="did") String did);
	
	@RequestMapping("app/device/status")
	public String deviceStatus(@RequestParam(name="did") String did);
	
	@RequestMapping("app/device/info")
	public String deviceInfo(@RequestParam(name="did") String did);
	
	@RequestMapping("app/devices/status")
	public String devicesStatus(@RequestParam(name="dids") List<String> dids);
}
